

@foreach($data as $a)
    <li>
        <div class="topic_avatar">
            <a href="{{url('userCenter')}}/user={{$a->user_id}}"><img title="{{$a->user['username']}}" src="{{asset($a->profile['avatar'])}}" ></a>
        </div>
        <div class="topic_title">
            <a class="li_a" href="{{url('topic')}}/topics={{$a->id}}">
                <span>{{$a->tags[0]['tag_name']}}</span>
                <i title="{{$a->title}}">{{$a->title}}</i>
                <p>{{count($a->replies)}}评/{{count($a->vote)}}赞/{{$a->created_at->diffForHumans()}}</p>
            </a>
        </div>
    </li>
@endforeach


